
<script>
   export default {
       name: "item",
       props:{
         id:{
           type:Number,
           default:1
         }
       },
       data(){
           return {
              list:[1,2,3,4],
              text:"11"
           }
       },
       methods:{
         hello(...args){
             let mes = args[1]|| "nihao"
             this.$alert(mes)
         },
         hello1(){

         }
         
       },
       render(){
            return (
                <div>
                <el-button type="primary" size="mini" 
                onClick={(event)=>this.hello(this.list,event.currentTarget.innerText)}>呼呼哈哈
                </el-button>
                <el-button type="primary" size="mini" 
                onClick={this.hello1.bind(this)}>呼呼哈哈1
                </el-button>
                </div>
                
                )
       }
   }
</script>
